package cn.rocksolid.sport.security.service;

import cn.rocksolid.sport.security.entity.MenuEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * System Menu service
 *
 * @author Axl Zhao
 * @email axl.zhao@163.com
 */
public interface MenuService extends IService<MenuEntity> {

  Set<String> queryPermsByUid(final String uid);

  List<MenuEntity> queryMenusByUid(final String uid);

  /**
   * CAN ONLY BE INVOKED BY BACKOFFICE
   */
  List<MenuEntity> queryAllMenus();
}
